package ma.cdm.compteRendu.bo;
// default package

import javax.persistence.Column;
import javax.persistence.Embeddable;


/**
 * SuiviPointId entity. @author Limouri Anouar
 */
@Embeddable

public class SuiviPointId  implements java.io.Serializable {


    // Fields    

     private Long idcompterendu;
     private Long idpoint;


    // Constructors

    /** default constructor */
    public SuiviPointId() {
    }

    
    /** full constructor */
    public SuiviPointId(Long idcompterendu, Long idpoint) {
        this.idcompterendu = idcompterendu;
        this.idpoint = idpoint;
    }

   
    // Property accessors

    @Column(name="IDCOMPTERENDU", nullable=false)

    public Long getIdcompterendu() {
        return this.idcompterendu;
    }
    
    public void setIdcompterendu(Long idcompterendu) {
        this.idcompterendu = idcompterendu;
    }

    @Column(name="IDPOINT", nullable=false)

    public Long getIdpoint() {
        return this.idpoint;
    }
    
    public void setIdpoint(Long idpoint) {
        this.idpoint = idpoint;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof SuiviPointId) ) return false;
		 SuiviPointId castOther = ( SuiviPointId ) other; 
         
		 return ( (this.getIdcompterendu()==castOther.getIdcompterendu()) || ( this.getIdcompterendu()!=null && castOther.getIdcompterendu()!=null && this.getIdcompterendu().equals(castOther.getIdcompterendu()) ) )
 && ( (this.getIdpoint()==castOther.getIdpoint()) || ( this.getIdpoint()!=null && castOther.getIdpoint()!=null && this.getIdpoint().equals(castOther.getIdpoint()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getIdcompterendu() == null ? 0 : this.getIdcompterendu().hashCode() );
         result = 37 * result + ( getIdpoint() == null ? 0 : this.getIdpoint().hashCode() );
         return result;
   }   





}